package com.icebartech.core.dto;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 基础DTO对象
 * @author wenhsh
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseDTO implements Serializable {
    
    // serialVersionUID变量需在子类定义，父类定义没有意义
    // private static final long serialVersionUID = -1176951858992604502L;
    
    /**
     * 创建者
     */
    private String creator;
    
    /**
     * 修改者
     */
    private String modifier;
    
    /**
     * 创建时间
     */
    private Date gmtCreated;
    
    /**
     * 更新时间
     */
    private Date gmtModified;
    
    /**
     * 是否删除
     */
    private String isDeleted;
    
    public Date getGmtCreated() {
        return null == this.gmtCreated ? null : (Date) this.gmtCreated.clone();
    }
    
    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = null == gmtCreated ? null : (Date) gmtCreated.clone();
    }
    
    public Date getGmtModified() {
        return null == this.gmtModified ? null : (Date) this.gmtModified.clone();
    }
    
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = null == gmtModified ? null : (Date) gmtModified.clone();
    }
}
